@import url('https://fonts.googleapis.com/css2?family=Vast+Shadow&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Tint&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Tint&family=Kode+Mono:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Spice&family=Bungee+Tint&family=Kode+Mono:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sixtyfour+Convergence&display=swap');

html body[for=html-export]:not([data-presentation-mode]) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 24px;
    font-style: normal;
    background-color: #1d1e1e;
    gap: 10px;
    padding: 6px;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgb(45, 44, 44);
    width: 100%;
    text-align: center;
    z-index: 1000;
    height: 69px;
}

.title p {
    font-family: "Bungee Spice", sans-serif;
    font-weight: 400;
    padding-top: 7px;
    animation: glow 1.5s ease-in-out infinite alternate;
    font-size: 40px;
}

.note {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.align-equation {
    text-align: center;
    display: block;
}

mjx-container {
    text-align: center;
    display: block;
    margin: 20px 0;
    word-wrap: break-word;
}

.container {
    max-width: 100%;
    padding: 0 20px;
}

.markdown-preview {
    width: 1218px;
    background-color: #0d0d16;
    color: aliceblue;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow-x: hidden;
    transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

html body[for=html-export]:not([data-presentation-mode]) .markdown-preview {
    padding: 45px;
}

.markdown-preview:hover {
    background-color: #151523;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

p {
    line-height: 1.8;
    word-wrap: break-word;
}

html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6 {
    transition: background-color 0.4s ease, color 0.3s ease;
}

html body h1 {
    font-size: 30px;
    color: rgb(223, 88, 247);
    font-family: "Vast Shadow", serif;
    font-weight: 400;
}

html body h1:hover {
    background-color: rgb(52, 51, 51);
    padding: 7px;
    border-radius: 5px;
}

html body h2 {
    font-size: 24px;
    color: rgb(123, 237, 159);
    font-family: "Vast Shadow", serif;
    font-weight: 400;
}

html body h2:hover {
    background-color: rgb(136, 134, 134);
    padding: 7px;
    border-radius: 5px;
}

html body h3 {
    font-size: 22px;
    color: rgb(233, 235, 145);
    font-family: "Vast Shadow", serif;
    font-weight: 400;
}

html body h3:hover {
    background-color: rgb(136, 134, 134);
    padding: 7px;
    border-radius: 5px;
}

html body h4 {
    font-size: 20px;
    color: rgb(156, 231, 229);
    font-family: "Vast Shadow", serif;
    font-weight: 400;
}

html body h4:hover {
    background-color: rgb(136, 134, 134);
    padding: 7px;
    border-radius: 5px;
}

html body h5 {
    font-size: 18px;
    color: rgb(240, 168, 168);
    font-family: "Vast Shadow", serif;
    font-weight: 400;
}

html body h5:hover {
    background-color: rgb(136, 134, 134);
    padding: 7px;
    border-radius: 5px;
}

html body h6 {
    font-size: 16px;
    color: rgb(183, 184, 187);
    font-family: "Vast Shadow", serif;
    font-weight: 400;
}

html body h6:hover {
    background-color: rgb(136, 134, 134);
    padding: 7px;
    border-radius: 5px;
}


strong {
    font-family: "Bungee Tint", sans-serif;
    font-weight: 400;
}

strong:hover {
    background-color: yellowgreen;
    padding: 5px;
    border-radius: 5px;
}

em {
    font-family: "Sixtyfour Convergence", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "BLED" 0,
        "SCAN" 0,
        "XELA" 0,
        "YELA" 0;
}

em:hover {
    background-color: rgb(230, 250, 189);
    padding: 5px;
    border-radius: 5px;
}

pre {
    display: flex;
    background-color: #282c34;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: auto;
    justify-content: space-between;
    animation: bounce 0.6s ease-in-out;
}

pre:hover {
    animation: shake 0.5s ease-in-out;
}

code {
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code:not([class*="language-"]) {
    background-color: #2c2c2c;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 24px;
}

.copy-button {
    position: sticky;
    top: 0px;
    right: 0px;
    background-color: transparent;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1;
    pointer-events: auto;
}

.copy-button:active {
    transform: scale(0.9);
}

.copied::after {
    content: "Copied!";
    font-size: 0.9rem;
    color: #28a745;
    position: absolute;
    right: 40px;
    top: 3px;
    opacity: 1;
    animation: fadeout 2.3s forwards;
}

@media (max-width: 768px) {
    body {
        width: 100%;
        padding: 7px;
        font-size: 16px;
    }

    .title {
        font-size: 18px;
        height: auto;
        padding: 7px 0;
    }

    .container {
        width: 100%;
        padding: 8px;
    }

    .content {
        padding: 10px;
    }

    html body h1,
    html body h2,
    html body h3,
    html body h4,
    html body h5,
    html body h6 {
        font-size: 1rem;
    }

    pre {
        font-size: 12px;
        padding: 10px;
    }

    code {
        font-size: 0.9rem;
    }

    .copy-button {
        font-size: 1rem;
    }

    .markdown-preview {
        width: 100%;
        box-shadow: none;
        padding: 20px;
        border-radius: 0;
    }

    .title p {
        font-size: 28px;
    }

    equation,
    align,
    .katex-display {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

@keyframes zoom-in {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 10px #fff;
    }

    100% {
        text-shadow: 0 0 10px #fff, 0 0 30px #fff;
    }
}

/* Math Equations */
/* Equation Styling for Dark Theme */
equation,
align,
.katex-display {
    display: block;
    /* text-align: left; */
    margin: 20px 0;
    /* font-size: 1.4em; */
    color: #ecf0f1;
    /* Light text for dark background */
    padding: 12px;
    background-color: #2c3e50;
    /* Dark background */
    border-radius: 8px;
    border: 1px solid #34495e;
    /* Subtle border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition for hover effect */
}

/* Specific Equation Block */
equation {
    background-color: #34495e;
    /* Slightly different background for the equation block */
    padding: 15px;
    border: 1px solid #1f2a38;
    /* Darker border */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    /* Consistent shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition for hover effect */
}

/* Hover Effect */
equation:hover,
align:hover,
.katex-display:hover {
    transform: translateY(-5px);
    /* Subtle lift effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    /* Increased shadow on hover */
    background-color: #3b4a5a;
    /* Slight color change on hover */
}

/* Animation on Page Load */
equation,
align,
.katex-display {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    /* Fade in effect */
}

@media screen and (max-width: 450px) {
    html body[for=html-export]:not([data-presentation-mode]) .markdown-preview {
        font-size: 9px !important;
        padding: 1em
    }
}

.note {
    background-color: #f39c12;
    color: #fff;
    padding: 10px;
    border-left: 5px solid #e67e22;
    border-radius: 3px;
    font-weight: bold;
    margin-bottom: 20px;
}

.remember {
    background-color: #8e44ad;
    color: #fff;
    padding: 10px;
    border-left: 5px solid #9b59b6;
    border-radius: 3px;
    font-style: italic;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        /* Start with a slight upward shift */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Settle in its original position */
    }
}